/*
9. Write an expression that checks for given point (x, y) if it is within the circle K( (1,1), 3) and out of the rectangle R(top=1, left=-1, width=6, height=2).
*/
using System;

class IsInCircleOutOfRectangle
    {
        static void Main()
        {
            Console.Write("Enter X of point ");
            double checkedPoinX = double.Parse(Console.ReadLine());

            Console.Write("Enter Y of point ");
            double checkedPoinY = double.Parse(Console.ReadLine());

            double isInCircle = ( checkedPoinX-1) * ( checkedPoinX-1) + ( checkedPoinY-1) * ( checkedPoinY-1);
            if (isInCircle <= 9) Console.WriteLine("The point is in the circle");
            else Console.WriteLine("The point is out of the circle");
            if((-1 <= checkedPoinX) && (checkedPoinX <= 5) &&
            (-1 <= checkedPoinY) && (checkedPoinY <= 1)) Console.WriteLine("The point is in the rectangle");
            else Console.WriteLine("The point is out of the rectangle");      
        }
    }